package com.yonyou.pmclouds.plan.processor;

import com.yonyou.pmclouds.basecom.bp.processor.SingleProcessor;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.plan.entity.ScheduleVO;
import com.yonyou.pmclouds.plan.rmiitf.IScheduleItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: zhangzhonghao
 * @Date: 2020-03-08
 */
@Component
public class ScheduleAdjustItemProcessor implements SingleProcessor<ScheduleVO> {

    @Autowired
    private IScheduleItemService itemService;

    @Override
    public void process(ScheduleVO vo, ScheduleVO orig) throws BusinessException {
        itemService.updateForAdjust(vo, orig);
    }
}
